//
// Created by kriko on 2021/7/9.
//

#include <csapp.h>
#include <tcpcliserv/str_cli09.h>

int main(int argc, char* argv[]) {
    int sockfd;
    if (argc != 3) {
        fprintf(stderr, "Usage: %s <ip> <port>\n", argv[0]);
        return -1;
    }

    sockfd = Open_clientfd(argv[1], atoi(argv[2]));
    str_cli(stdin, sockfd);
    return 0;
}